package org.zfes.snowier.cloud.zbss.cms.content.model;
import java.util.Map;

import org.zfes.snowier.common.dao.IBaseModel;
public class CmsContentUserDefineAttr extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public CmsContentUserDefineAttr() {}
	public CmsContentUserDefineAttr(Long id) {
		this.setId(id);
	}

	
	public CmsContentUserDefineAttr(Long contentId, String attrKey, String attrValue) {
		super();
		this.contentId = contentId;
		this.attrKey = attrKey;
		this.attrValue = attrValue;
	}


	//<-------------------------------------------->
	@javax.validation.constraints.NotNull(message="不能为空")
	  private java.lang.Long contentId;
 
	@javax.validation.constraints.NotNull(message="名称不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=50,message="名称长度不能大于50")
	  private java.lang.String attrKey;
	 @org.hibernate.validator.constraints.Length(min=0,max=500,message="值长度不能大于500")
	  private java.lang.String attrValue;
	@javax.validation.constraints.NotNull(message="状态:不能为空")
	  private java.lang.Byte status;
	@javax.validation.constraints.NotNull(message="更新时间不能为空")
	  private java.util.Date updateTime;
	@javax.validation.constraints.NotNull(message="创建时间不能为空")
	  private java.util.Date createTime;
 
	
	//<-------------------------------------------->
	public CmsContentUserDefineAttr setContentId(java.lang.Long contentId){
	 this.contentId=contentId;
	 return this;
	}
	public java.lang.Long getContentId(){
		return this.contentId;
	}
	public CmsContentUserDefineAttr setAttrKey(java.lang.String attrKey){
		this.attrKey=attrKey==null?null:attrKey.trim();
	 return this;
	}
	public java.lang.String getAttrKey(){
		return this.attrKey;
	}
	public CmsContentUserDefineAttr setAttrValue(java.lang.String attrValue){
		this.attrValue=attrValue==null?null:attrValue.trim();
	 return this;
	}
	public java.lang.String getAttrValue(){
		return this.attrValue;
	}
	public CmsContentUserDefineAttr setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public CmsContentUserDefineAttr setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}
	public CmsContentUserDefineAttr setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}

}
